<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    public function scopeShelf($query, $status = 1)
    {
        return $query->where(['shelf' => $status]);
    }
}
